package com.gzx.bi.modular.team.controller;

import com.gzx.bi.modular.team.bo.GzxTeamEffectBo;
import com.gzx.bi.modular.team.service.GzxTeamEffectService;
import com.gzx.bi.modular.team.vo.GzxTeamEffectVo;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import vip.xiaonuo.common.pojo.CommonResult;

import java.util.List;

/**
 * 团队效率
 *
 * @author xbl
 */
@RestController
@RequiredArgsConstructor
@RequestMapping("/bi/team")
public class GzxTeamEffectController {

    private final GzxTeamEffectService teamEffectService;

    /**
     * 查询团队效率报表
     */
    @PostMapping("/getTeamEffect")
    public CommonResult<List<GzxTeamEffectVo>> getTeamEffect(@RequestBody GzxTeamEffectBo bo) {
        return CommonResult.data(teamEffectService.getTeamEffect(bo));
    }

}
